package com.ruoyi.seedlingSys.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 记录温度和湿度数据对象 temperaturerecord
 * 
 * @author ruoyi
 * @date 2025-03-11
 */
public class Temperaturerecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录唯一标识 */
    private Long recordID;

    /** 温度传感器ID */
    @Excel(name = "温度传感器ID")
    private Long temperatureSensorID;

    /** 温度传感器名称 */
    @Excel(name = "温度传感器名称")
    private String temperatureSensorName;

    /** 温度传感器唯一标识键 */
    @Excel(name = "温度传感器唯一标识键")
    private String temperatureSensorKey;

    /** 温度记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "温度记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    /** 温度值 */
    @Excel(name = "温度值")
    private Long temperatureValue;

    /** 湿度值 */
    @Excel(name = "湿度值")
    private Long humidityValue;

    public void setRecordID(Long recordID) 
    {
        this.recordID = recordID;
    }

    public Long getRecordID() 
    {
        return recordID;
    }
    public void setTemperatureSensorID(Long temperatureSensorID) 
    {
        this.temperatureSensorID = temperatureSensorID;
    }

    public Long getTemperatureSensorID() 
    {
        return temperatureSensorID;
    }
    public void setTemperatureSensorName(String temperatureSensorName) 
    {
        this.temperatureSensorName = temperatureSensorName;
    }

    public String getTemperatureSensorName() 
    {
        return temperatureSensorName;
    }
    public void setTemperatureSensorKey(String temperatureSensorKey) 
    {
        this.temperatureSensorKey = temperatureSensorKey;
    }

    public String getTemperatureSensorKey() 
    {
        return temperatureSensorKey;
    }
    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }
    public void setTemperatureValue(Long temperatureValue) 
    {
        this.temperatureValue = temperatureValue;
    }

    public Long getTemperatureValue() 
    {
        return temperatureValue;
    }
    public void setHumidityValue(Long humidityValue) 
    {
        this.humidityValue = humidityValue;
    }

    public Long getHumidityValue() 
    {
        return humidityValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordID", getRecordID())
            .append("temperatureSensorID", getTemperatureSensorID())
            .append("temperatureSensorName", getTemperatureSensorName())
            .append("temperatureSensorKey", getTemperatureSensorKey())
            .append("recordTime", getRecordTime())
            .append("temperatureValue", getTemperatureValue())
            .append("humidityValue", getHumidityValue())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
